﻿    <Window x:Class="TrackIT.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        Height="110" Title="MainWindow" AllowsTransparency="True" Width="603" WindowStyle="None" 
        WindowStartupLocation="CenterScreen" ShowInTaskbar="False" Background="Transparent" Visibility="Hidden" 
        KeyUp="Window_KeyUp" Topmost="True" Loaded="Window_Loaded" MouseLeftButtonDown="Window_MouseLeftButtonDown"
        FocusManager.FocusedElement="{Binding ElementName=taskComboList}" Initialized="Window_Initialized"
        DataContext="{Binding}">
    
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="theme.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Border Padding="0" CornerRadius="30" OverridesDefaultStyle="False" Opacity=".9">
        <Border.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="Black" Offset="0.5" />
                <GradientStop Color="#FF3D3D3D" Offset="0" />
                <GradientStop Color="#FF3D3D3D" Offset="1" />
            </LinearGradientBrush>
        </Border.Background>
        <Grid Name="theGrid">        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="366*" />
            <ColumnDefinition Width="188*" />            
        </Grid.ColumnDefinitions>

        <Label Content="{Binding OperationLabel}" SnapsToDevicePixels="True" Height="37" FontSize="30" FontFamily="Segoe UI" VerticalAlignment="Center" Foreground="White" Name="lblStartStop" 
               Margin="7,10,304,22" Focusable="False" FontStyle="Normal" FontWeight="Normal" />
        
        <ComboBox Height="41" FontSize="30" Foreground="White" Background="#FF141212" HorizontalAlignment="Left" Margin="81.874,4,0,20" Name="taskComboList" VerticalAlignment="Center" 
                  Width="297.126" BorderThickness="0" BorderBrush="#FF141212" Padding="0" UseLayoutRounding="False" Template="{StaticResource ComboBoxTemplate}" 
                  IsEditable="{Binding EnableCombo}" IsEnabled="{Binding EnableCombo}"
                  ItemsSource="{Binding Tasks}" DisplayMemberPath="Name" 
                  SelectedValue="{Binding SelectedTask, Mode=TwoWay}"
                  Text="{Binding TaskText}"
                  TabIndex="0" Focusable="True" />

        <Label Content="{Binding TimeLabel}" FontFamily="Segoe UI" FontSize="30" Foreground="White" Height="36" HorizontalAlignment="Left" Margin="0,11,0,22" Name="lblTime" SnapsToDevicePixels="True" 
               VerticalAlignment="Center" Width="172" Grid.Column="1" Focusable="False"  />

        <Label Content="{Binding Description}" Height="18" HorizontalAlignment="Left" Margin="17,0,0,6" Name="lblDescription" 
               VerticalAlignment="Bottom" Width="558" Grid.ColumnSpan="2" Focusable="False" />            
        </Grid>
    </Border>
</Window>
